BIN=processpool
cc=g++
FLAGS=-c -Wall -std=c++11
LDFLAGS=-o
SRC=$(shell ls *.cc)
OBJ=$(SRC:.cc=.o)

$(BIN):$(OBJ)
	$(cc) $(LDFLAGS) $@ $^
%.o:%.cc
	$(cc) $(FLAGS) $<
.PHONY:clean
clean:
	rm -f $(BIN) $(OBJ)
.PHONY:test
test:
	echo $(SRC)